﻿@{
    ViewBag.Title = "Contact";
}
<div id="app2">
    <myscript-componet></myscript-componet>
</div>
<script type="text/x-template" id="myscript">
    <div>这是scrptidiv</div>
</script>

@section footscripts{
    <script type="text/javascript">

        new Vue({
            el: '#app2',
            components: {
                'myscript-componet': { template: '#myscript' }
            }
        });
    </script>
}